/**
 * Created by Administrator on 2015/7/23.
 */
global_obj = {
    'web'       :   'http://loclhost',
    'webmaster' :   'http://localhost/webmaster',
	tableLine	: function(){
		$('#box table tr:gt(0)').mouseover(function(){
			$(this).css({'background':'#f4f4f4'});
		});
		$('#box table tr:gt(0)').mouseout(function(){
			$(this).css({'background':''});
		});
	},
	order_ctrl	: function(fn){
		$('#box .group_btn .invoices_btn').click(function(){
			var str='';
			var group_id='';
			$('.order_input').each(function(index, element) {
                str += $(element).val()+'-';
				group_id += $(element).attr('order_id')+'-';
            });
			str=str.substr(0,str.length-1);
			group_id=group_id.substr(0,group_id.length-1);
			fn && fn(str,group_id);
		});
	},
    subEvent : function(oBtn,sub_url,proerty,success_fn,fail_fn){
        oBtn.attr('disabled','disabled');
        $.post(sub_url, proerty, function(data){
            if(data.ret==1){
                success_fn && success_fn(data);
            }else{
                fail_fn && fail_fn(data);
            }
        }, 'json');
    }
}